package com.msda.pojo.entity.room;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(autoResultMap = true)
public class MeetingRoom {
//    id: string;
//    name: string;
//    area: number;
//    capacity: number;
//    type: "classroom" | "roundtable";
//    device: {
//        speaker: boolean; 	// 是否有扬声器
//        internet: boolean; 	// 是否有互联网
//        projector: boolean; // 是否有投影仪
//    };
//    locked: boolean;		// 是否被锁定(付款锁定, 避免预定冲突)
//    maintained: boolean;	// 是否正在维修(维修锁定, 避免预定冲突)
//    hourlyRate: number;  	// 每小时租金
//     createdDate: number;
    @TableId
    private String id;
    private String name;
    private double area;
    private int capacity;
    private String type;

    @TableField(typeHandler = JacksonTypeHandler.class)
    private Device device;

    private boolean locked;
    private boolean maintained;
    private int hourlyRate;
    private Long createdDate;
}


